{extend name="./template/default/m/pub/base.html" /}
{block name="seo"}
<title>提现记录-{$site_name}</title>
{/block}
{block name="css"}
<style type="text/css">
    #wrapper {
        position: absolute;
        z-index: 1;
        top: 90px;
        bottom: 0px;
        left: 0;
        width: 100%;
        overflow: hidden;
    }

    #scroller {
        position: absolute;
        z-index: 1;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        width: 100%;
        -webkit-transform: translateZ(0);
        -moz-transform: translateZ(0);
        -ms-transform: translateZ(0);
        -o-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-text-size-adjust: none;
        -moz-text-size-adjust: none;
        -ms-text-size-adjust: none;
        -o-text-size-adjust: none;
        text-size-adjust: none;
    }
</style>
{/block}
{block name="content"}
{include file="./template/default/m/pub/top3.html" /}
<div class="selector-top" style="top: 46px;">
    <a class="selector-top-item" href="/chargehistory">充值记录</a>
    <a class="selector-top-item" href="/spendinghistory">消费记录</a>
    <a class="selector-top-item active" href="/cashhistory">提现记录</a>
</div>
<div id="wrapper" style="touch-action: none;">
    <ul class="vip-record" style="transform: translate(0px, 0px) translateZ(0px);">
        {raccoon:finances name="finances" id="cate"
        where="`usage` = 6 and user_id='$xwx_user_id'"}
        <li>
            <p class="vip-record-rechange">{$vo.create_time|date='Y-m-d'}</p>
            <span class="vip-record-right">{$vo.money}元</span>
        </li>
        {/raccoon:finances}
    </ul>
    <ul class="pagination">
        {if $page.last_page > 1}
        {if $page.current_page == 1}
        <li class="paginate_button page-item">
            <a href="javascript:;" class="page-link">«</a>
        </li>
        {else/}
        <li class="paginate_button page-item">
            <a href="/chargehistory?page={$page.current_page-1}{$param}" class="page-link">«</a>
        </li>
        {/if}

        {for start="1" end="$page.last_page + 1"}
        {if $i == $page.current_page }
        <li class="paginate_button page-item active">
            <a href="/chargehistory?page={$i}{$param}"  class="page-link">{$i}</a>
        </li>
        {elseif ($i > $page.current_page - 4 && $i < $page.current_page + 5)/}
        <li class="paginate_button page-item">
            <a href="/chargehistory?page={$i}{$param}"  class="page-link">{$i}</a>
        </li>
        {/if}
        {/for}

        {if $page.current_page == $page.last_page}
        <li class="paginate_button page-item">
            <a href="javascript:;" class="page-link">»</a>
        </li>
        {else/}
        <li class="paginate_button page-item">
            <a href="/chargehistory?page={$page.current_page+1}{$param}" class="page-link">»</a>
        </li>
        {/if}
        {/if}
    </ul>
</div>

{/block}